package java_demos.java_basic.instance_demos.about_string;

public class RemoveChartAt {
    /**
     * @description: 删除一个字符
     * @author:
     * @date: 2024/5/29 下午2:41
     * @param:
     * @return:
     **/

    public static void main(String[] args) {
        String str = "this is Java";
        System.out.println(removeChartAt(str,3));
    }
    public static String removeChartAt(String str,int position) {
        return str.substring(0,position)+str.substring(position+1);
    }
}
